package com.woniu.darryringmall.front.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.darryringmall.front.entity.OrderItems;
import com.woniu.darryringmall.front.entity.ViewOrder;
import com.woniu.darryringmall.front.mapper.ViewOrderMapper;
import com.woniu.darryringmall.front.service.ViewOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ViewOrderServiceImpl extends ServiceImpl<ViewOrderMapper, ViewOrder> implements ViewOrderService {
    @Autowired
    private ViewOrderMapper viewOrderMapper;

    @Override
    public List<ViewOrder> getByOrderId(int orderid){
        return viewOrderMapper.getByOrderId(orderid);
    };

    @Override
    public List<ViewOrder> getByUserId(int userid){
        return viewOrderMapper.getByUserId(userid);
    };

    @Override
    public List<ViewOrder> getDeletedOrders(){
        return viewOrderMapper.getDeletedOrders();
    };
}
